package net.wanho.hospital.service;

import net.wanho.hospital.po.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;
import java.util.Map;

/**
 *  服务类
 *
 * @author 汤小洋
 * @since 2023-12-27
 */
public interface OrdersService extends IService<Orders> {

   /**
    *   按查询分页查询
    */
    IPage<Orders> findPage(int pageNum, int pageSize,Orders orders);

    Map<String, Object> findAllOrders(int pageNumber, int size, String query);

    void addOrder(Orders order, String arId);

    List<Orders> findByPid(Integer pId);

    List<Orders> findOrderByNull(Integer dId, String oStart);

    void updatePrice(String oId);

  Map<String, Object> findOrderByDid(int pageNum, int pageSize, Integer dId, String pId);

    Map<String, Object> findOrderFinish(int pageNum, int pageSize, Integer dId, String pId);
}
